tuple1 = ('alex', 'eric', 'rain')
print(len(tuple1))
print(tuple1[1])
print(tuple1[1], tuple1[2])
# 切片：左闭右开，不包括最后
print(tuple1[0:2])
# 遍历
# 1）元素
for e in tuple1:
    print(e)
# 2) 下标/索引
# range()：左闭右开，不包括最后
for i in range(0,len(tuple1)):
    print(tuple1[i])
